This page describes the coding intelligence features included in the code cells of DataRobot Notebooks.

### Code snippets {: #code-snippets }

DataRobot provides a set of pre-defined code snippets, inserted as cells in a notebook, for commonly used methods in the DataRobot API as well as other data science tasks. These include connecting to external data sources, deploying a model, creating a model factory, and more. Access code snippets by selecting the code icon in the sidebar.

![](images/nb-14.png)

### Docstrings reference {: #docstrings-reference }

When using a specific method or class, use the `Shift + Tab` keyboard shortcut directly from the code editor to query docstrings. Additional documentation appears as an overlay.

![](images/nb-13.png)

### Autocomplete {: #autocomplete }

{% if section(page, "dr-notebooks") %}

When [editing code](dr-action-nb#modal-editor), you can autocomplete lines using the **Tab** key. To activate autocompletion, you must first [configure and start the notebook environment](dr-env-nb).

{% else %}

When [editing code](wb-action-nb#modal-editor), you can autocomplete lines using the **Tab** key. To activate autocompletion, you must first [configure and start the notebook environment](wb-env-nb).

{% endif %}

### Syntax highlighting {: #syntax-highlighting }

When writing code in code cells, DataRobot highlights syntax for the language set in the notebook environment. Below is a sample of syntax highlighting for Python:

![](images/nb-27.png)
